package com.zxw.biz.ov.user.web.interfaces.controller;

import com.zxw.service.video.domain.video.domain.aggregate.xQueryParam;
import com.zxw.service.video.domain.video.domain.repository.VipRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zxw
 * @date 2020/6/26 13:44
 */
@RestController
@RequestMapping("/vip")
public class VipController {

    @Autowired
    private VipRepository vipRepository;

    @GetMapping("/list")
    public ResponseEntity list(xQueryParam queryParam){
        return ResponseEntity.ok(vipRepository.cacaIndex(queryParam));
    }

}
